package com.zhida.smartcontrol.mvp;

import com.zhida.smartcontrol.knet.KalleCenter;

/**
 * author: tanjianpei
 * date: 2019/8/19 019 15:10
 * description:
 */
public class BasePresenterImpl<V extends BaseView> implements BasePresenter<V> {
    protected String TAG = this.getClass().getSimpleName();
    protected V mView;
    protected KalleCenter mKalleCenter;

    @Override
    public void attachView(V view) {
        mView = view;
        mKalleCenter = new KalleCenter(TAG, view);
    }

    @Override
    public void detachView() {
        mKalleCenter.cancel();
        mView = null;
    }
}
